<?php

/*
* Description: Create Custom post type Features.
* Version: 1.0
* Author: huuducvt
* Author URI: http://zonthemes.com/author/huuducvt
*/
if(zon_options("zon_option_features") == 1){
    function zonthemes_create_posttype_features() {
      $labels = array(
        'name'               => 'Features',
        'singular_name'      => 'Features',
        'add_new'            => 'Add New',
        'add_new_item'       => 'Add New Features',
        'edit_item'          => 'Edit Features',
        'new_item'           => 'New Features',
        'all_items'          => 'All Features',
        'view_item'          => 'View Features',
        'search_items'       => 'Search Features',
        'not_found'          => 'No Features found',
        'not_found_in_trash' => 'No Features found in Trash',
        'parent_item_colon'  => '',
        'menu_name'          => 'Features',
      );

      $args = array(
        'labels'             => $labels,
        'public'             => true,
        'publicly_queryable' => true,
        'show_ui'            => true,
        'show_in_menu'       => true,
        'query_var'          => true,
        'rewrite'            => array( 'slug' => 'features' ),
        'capability_type'    => 'post',
        'has_archive'        => true,
        'hierarchical'       => false,
        'menu_position'      => null,
    	'menu_icon'          => get_bloginfo("template_url").'/includes/posttypes/property/images/icon-home.png',
        'supports'           => array( 'title','thumbnail' )
      );

      register_post_type( 'features', $args );
    }
    add_action( 'init', 'zonthemes_create_posttype_features' );
}